package com.jgp.third.pay.pojo;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2018/10/25
 */
public class AliPaymentParam implements PaymentParam {
    
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public String appId;
    // 合作身份者ID，以2088开头由16位纯数字组成的字符串
    public String partner;
    
    // 商户私钥，您的PKCS8格式RSA2私钥
    public String merchantPrivateKey;
    
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public String alipayPublicKey;
    
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public String notifyUrl = "/third/pay/aliPayApiController/payNotify";
    
    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public String returnUrl = "/third/pay/aliPayController/payReturn";
    
    // 签名方式
    private SignType signType;
    
    // 支付宝网关
    //public String gatewayUrl = "https://openapi.alipay.com/gateway.do";
    public String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";
    /**
     * 支付宝提供给商户的服务接入网关URL(新)
     */
    private String partnerServiceGateWay = "https://mapi.alipay.com/gateway.do";
    
    private String account;
    
    private String accountName;
    
    public String getAppId() {
        return appId;
    }
    
    public void setAppId(String appId) {
        this.appId = appId;
    }
    
    public String getPartner() {
        return partner;
    }
    
    public void setPartner(String partner) {
        this.partner = partner;
    }
    
    public String getMerchantPrivateKey() {
        return merchantPrivateKey;
    }
    
    public void setMerchantPrivateKey(String merchantPrivateKey) {
        this.merchantPrivateKey = merchantPrivateKey;
    }
    
    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }
    
    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }
    
    public String getNotifyUrl() {
        return notifyUrl;
    }
    
    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
    
    public String getReturnUrl() {
        return returnUrl;
    }
    
    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }
    
    public SignType getSignType() {
        return signType;
    }
    
    public void setSignType(SignType signType) {
        this.signType = signType;
    }
    
    public String getGatewayUrl() {
        return gatewayUrl;
    }
    
    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }
    
    public String getPartnerServiceGateWay() {
        return partnerServiceGateWay;
    }
    
    public void setPartnerServiceGateWay(String partnerServiceGateWay) {
        this.partnerServiceGateWay = partnerServiceGateWay;
    }
    
    public String getAccount() {
        return account;
    }
    
    public void setAccount(String account) {
        this.account = account;
    }
    
    public String getAccountName() {
        return accountName;
    }
    
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }
}
